<template>
    <div class="wrap">
        <HomeList/>
        <HomeFooter/>
    </div>
</template>

<script>
    import HomeFooter from '@/components/HomeFooter.vue'
    import HomeList from '@/components/Home-List'
    export default {
        name:"Home-Component",
        components:{HomeList,HomeFooter},
        data(){
            return {
                isshow:true
            }
        },
        methods: {
            // 获取页面数据
            getHomeDate(type){

                this.$store.dispatch('Home/getHomeDate',type)
            }
        },
        created() {
            this.getHomeDate(sessionStorage.getItem('indexText') || '推荐')
        },
    }
</script>

<style lang="less" scoped>
    .wrap{
        width: 100%;
        background: #F0F2F5;
    }
</style>